package edu.cmu.atlub.api;

import java.io.IOException;
import java.io.InputStream;

import org.apache.http.client.ClientProtocolException;

public class FollowingAPI extends BaseAPI {
    static final String FOLLOWING_API_URL = "http://api.twitter.com/1/statuses/friends/";

    public InputStream getAPIInputStream(long user_id) throws ClientProtocolException, IOException {
	// String userFollowersUrl = FOLLOWERS_API_URL + user_id + ".json";
	String userFollowersUrl = String.format("%s%d.json", FOLLOWING_API_URL, user_id);
	System.err.println("Using following URL: " + userFollowersUrl);

	return super.getAPIInputStream(userFollowersUrl, null);
    }

}
